package fr.utbm;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class SensorList {

	private List<Sensor> sensors;
	
	public SensorList() {
		sensors = new ArrayList<Sensor>();
	}
	
	public void addSensor(Sensor s) {
		sensors.add(s);
        //Collections.sort(sensors);
	}
	
	public List<Sensor> getSensors() {
		return sensors;
	}

	public int indexOf(Sensor s) {
		return sensors.indexOf(s);
	}

	public int size() {
		return sensors.size();
	}

	public Sensor get(int index) {
		return sensors.get(index);
	}

}
